<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="pf_conn.asp"-->
<!--#include file="pf_function.asp"-->
<!--#include file="pf_safe.asp"-->
<!--#include file="pf_md5.asp"-->
<%
If request.Form("submit") = "¹ÜÀíµÇÂ¼" Then
    If request.Form("pf_admin_name") = "" Then
        Call infoback("ÓÃ»§Ãû²»ÄÜÎª¿Õ£¡")
    End If
    If request.Form("pf_admin_password") = "" Then
        Call infoback("ÃÜÂë²»ÄÜÎª¿Õ£¡")
    End If
    If request.Form("pf_admin_verifycode") = "" Then
        Call infoback("ÑéÖ¤Âë²»ÄÜÎª¿Õ£¡")
    End If
    If CStr(Session("CheckCode"))<>CStr(Request.Form("pf_admin_verifycode")) Then
        Call infoback("ÑéÖ¤Âë´íÎó£¡")
    End If
    Set rs = server.CreateObject("adodb.recordset")
    sql = "select * from pf_admin where pf_admin_name='"&request.Form("pf_admin_name")&"' and pf_admin_password='"&md5(request.Form("pf_admin_password"))&"'"
    rs.Open sql, conn, 1, 1
    If Not rs.EOF Then
        session("pf_admin_name") = request.Form("pf_admin_name")
        response.redirect "pf_site.asp"
    Else
		Call close_rs
		Call close_conn
        Call infoback("ÓÃ»§Ãû»òÃÜÂë´íÎó£¡")
    End If
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ºóÌ¨¹ÜÀíÏµÍ³</title>
<link href="pf_style.css" rel="stylesheet" type="text/css" />
</head>
<body style="background:#FFF;">
<form method="post" action="pf_login.asp" id="login">
	<p> <strong>ÓÃ»§Ãû£º</strong>
		<input name="pf_admin_name" type="text" size="20" />
	</p>
	<p> <strong>ÃÜ¡¡Âë£º</strong>
		<input name="pf_admin_password" type="password" size="20" />
	</p>
	<p> <strong>ÑéÖ¤Âë£º</strong>
		<input name="pf_admin_verifycode" type="text" size="4" maxlength="4" />
		<img src="pf_verifycode.asp" onclick="javascript:this.src='pf_verifycode.asp?tm='+Math.random()" style="cursor:pointer" alt="µã»÷¸ü»»" title="µã»÷¸ü»»" /></p>
	<p style="text-align:center;">
		<input type="submit" name="submit" id="login_button" value="¹ÜÀíµÇÂ¼" />
	</p>
</form>
</body>
</html>
